package vd.cloud.com.repositories;

import org.springframework.data.repository.NoRepositoryBean;
import org.springframework.data.repository.Repository;

import java.io.Serializable;
import java.util.List;
import java.util.Optional;

/**
 * Created by VIET on 2/8/2015.
 */
@NoRepositoryBean
public interface BaseRepository<T, ID extends Serializable> extends Repository<T, ID> {
    public void delete(T entity);
    public List<T> findAll();
    public Optional<T> findOne(ID id);
    public T save(T entity);
}
